package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.OrderAo;
import com.ruoyi.system.domain.SysOrder;
import com.ruoyi.system.domain.SysOrderpro;
import com.ruoyi.system.mapper.SysOrderMapper;
import com.ruoyi.system.mapper.SysOrderproMapper;
import com.ruoyi.system.mapper.SysUserMapper;
import com.ruoyi.system.service.ISysOrderService;
import com.ruoyi.system.service.ISysOrderproService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Service;

/**
 * @author zyg
 * @version 1.0.0
 * <p>
 * class description goes here
 * descritpion:
 * @date 2025/7/28 11:23
 */
@Service
public class SysOrderproServiceImpl extends ServiceImpl<SysOrderproMapper, SysOrderpro> implements ISysOrderproService {
    @Autowired
    private SysUserMapper userMapper;

    @Override
    public IPage<SysOrderpro> orderListPage(Page<SysOrderpro> page, @Param("orderAo") OrderAo orderAo) {
        IPage<SysOrderpro> page1 = userMapper.selectOrderPage(page, orderAo);
        return page1;
    }
}
